Page MenuHomePhorge

Simplify project regex further
ClosedPublic

Authored by pppery on Fri, Apr 11, 15:27.

Details

Summary

Fixes T16028

Test Plan

Assert that #js-draw-lib (or any other project name with one or two characters followed by a non-word) links correctly. It was previously parsed as #js -draw-lib.

Repeat the test plan for D25838 and observe it still works

Unit TestsFailed

TimeTest
5 msProjectRemarkupRuleTestCase::testProjectObjectRemarkup
Assertion failed, expected values to be equal (at ProjectRemarkupRuleTestCase.php:155): #js-draw Expected vs Actual Output Diff --- Old Value
79 msPhabricatorCelerityTestCase::testCelerityMaps
1 assertion passed.
7 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
0 msPhabricatorInfrastructureTestCase::testApplicationsInstalled
1 assertion passed.
1 msPhabricatorInfrastructureTestCase::testRejectMySQLNonUTF8Queries
1 assertion passed.
View Full Test Results (1 Failed · 30 Passed)

Event Timeline

pppery requested review of this revision.Fri, Apr 11, 15:27

Wow, super fast thanks. Maybe nice to expand a bit the src/applications/project/remarkup/__tests__/ProjectRemarkupRuleTestCase.php

bekay subscribed.

Works for me. Tested on our firm instance.

Thanks! also for the freshly added unit test :3 :3

makeitso

This revision is now accepted and ready to land.Fri, Apr 25, 09:47
mainframe98 added inline comments.
src/applications/project/remarkup/__tests__/ProjectRemarkupRuleTestCase.php
152

(Odd that the linter did not complain about this)

pppery marked an inline comment as done.Fri, Apr 25, 15:38
This revision was automatically updated to reflect the committed changes.