Fix GNU vs BSD sed feature inference
diff --git a/Makefile b/Makefile
index 102f909..cfe521f 100644
--- a/Makefile
+++ b/Makefile
@@ -15,13 +15,11 @@
$(error Please install Node.js: https://nodejs.org/ )
endif
-# stupid BSD vs GNU https://developer.apple.com/library/mac/documentation/OpenSource/Conceptual/ShellScripting/PortingScriptstoMacOSX/PortingScriptstoMacOSX.html#//apple_ref/doc/uid/TP40004268-TP40003517-SW20
-ifeq (x, $(shell echo xy | sed -E 's/(x)y/\1/' 2>/dev/null))
- # BSD
- SED_IN_PLACE = sed -i ''
+# stupid GNU vs BSD https://github.com/mathquill/mathquill/pull/653/commits/4332b0e97a92fb1362123a06b68fa49d9efb6f38#r68305423
+ifeq (x, $(shell echo xy | sed -r 's/(x)y/\1/' 2>/dev/null))
+ SED_IN_PLACE = sed -i # GNU
else
- # GNU
- SED_IN_PLACE = sed -i
+ SED_IN_PLACE = sed -i '' # BSD
endif