Skip to content

Commit 99150cd

Browse files
committed
refactor: remove escaping of forward slashes in sed expression
1 parent 851d939 commit 99150cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ LOLCAT
238238
# echo.Reset to remove color code on output
239239
fnName="${fn}echo${dot}Reset${brackets}"
240240
cat << RESET >> "${tempDist}"
241-
${fnName}${startSym}echo "${para}" | tr -d ${trCntrl} | sed -E "s/${escape//\//\/\/}[((;)?[0-9]{1,3}){0,3}m//g" | xargs${endSym}
241+
${fnName}${startSym}echo "${para}" | tr -d ${trCntrl} | sed -E "s/${escape}[((;)?[0-9]{1,3}){0,3}m//g" | xargs${endSym}
242242
RESET
243243
mv -f "${tempDist}" "${newDist}"
244244
} &

0 commit comments

Comments
 (0)