Skip to content

Commit

Permalink
Fixed debian_locked.js recipe
Browse files Browse the repository at this point in the history
The regex can now handle comment suffixes in settings.

Fixes #485
  • Loading branch information
pyllyukko committed May 23, 2020
1 parent 1e782fb commit 2929c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ systemwide_user.js: user.js
sed 's/^user_pref/pref/' $< >| $@

debian_locked.js: user.js
sed 's/^user_pref(\("[^"]\+"\),\s\+\([^)]\+\));$$/pref(\1, \2, locked);/' $< >| $@
sed 's/^user_pref(\("[^"]\+"\),\s\+\([^)]\+\));\(\s*\/\/.*\)\?$$/pref(\1, \2, locked);/' $< >| $@

# https://github.com/mozilla/policy-templates/blob/master/README.md
policies.json:
Expand Down

0 comments on commit 2929c68

Please sign in to comment.