resource-watcher
resource-watcher copied to clipboard
Escape single quotes in filenames
This is a quick fix - the point is to prevent syntax errors in the generated cache file when the filename contains a single quote.
Not sure what effect this will have on the ResourceWatcher::calculateHashOfFile()
method.
Updated the initial PR: made sure quotes are escaped for both absolute & relative paths and added tests