Less greedy regex in travis helper scripts

This commit is contained in:
Scott Lahteine
2016-05-26 21:04:32 -07:00
parent 189e60db55
commit 2805bf3d82
6 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
for opt in "$@" ; do
eval "sed -i 's/\/\/ *\(#define *$opt\)/\1/g' Marlin/Configuration.h"
eval "sed -i 's/\/\/ *\(#define +$opt[^a-zA-Z0-9_]\)/\1/g' Marlin/Configuration.h"
done