Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
405492e9
Commit
405492e9
authored
Dec 23, 2013
by
Jason Hollingsworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with `bundle exec rake routes` not running.
Wrap regex comments in (?#comment) construct.
parent
055b3c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
lib/gitlab/regex.rb
lib/gitlab/regex.rb
+11
-11
No files found.
lib/gitlab/regex.rb
View file @
405492e9
...
...
@@ -24,20 +24,20 @@ module Gitlab
%r{
(?!
# doesn't begins with
\/
|
# (
rule #6)
# doesn't contain
(?# doesn't begins with)
\/
|
(?#
rule #6)
(?# doesn't contain)
.*(?:
[
\/
.]
\.
|
# (
rule #1,3)
\/\/
|
# (
rule #6)
@
\{
|
# (
rule #8)
\\
# (
rule #9)
[
\/
.]
\.
|
(?#
rule #1,3)
\/\/
|
(?#
rule #6)
@
\{
|
(?#
rule #8)
\\
(?#
rule #9)
)
)
[^
\000
-
\040\177
~^:?*
\[
]+
# (
rule #4-5)
# doesn't end with
(?<!
\.
lock)
# (
rule #1)
(?<![
\/
.])
# (
rule #6-7)
[^
\000
-
\040\177
~^:?*
\[
]+
(?#
rule #4-5)
(?# doesn't end with)
(?<!
\.
lock)
(?#
rule #1)
(?<![
\/
.])
(?#
rule #6-7)
}x
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment