Skip to content

Commit 7c42358

Browse files
ttomdewitbarryvdh
authored andcommitted
Update Manager.php (#295)
Using strings that contain `/`weren't being processed due to this regex. Using sub-directories will force us to review the regex in the future.
1 parent 5d17339 commit 7c42358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function findTranslations( $path = null )
164164
"[\'\"]" . // Match " or '
165165
'(' . // Start a new group to match:
166166
'[a-zA-Z0-9_-]+' . // Must start with group
167-
"([.|\/](?! )[^\1)]+)+" . // Be followed by one or more items/keys
167+
"([.](?! )[^\1)]+)+" . // Be followed by one or more items/keys
168168
')' . // Close group
169169
"[\'\"]" . // Closing quote
170170
"[\),]"; // Close parentheses or new parameter

0 commit comments

Comments
 (0)