Skip to content

Instantly share code, notes, and snippets.

@jem-computer
Last active December 11, 2015 04:58
Show Gist options
  • Save jem-computer/4548693 to your computer and use it in GitHub Desktop.
Save jem-computer/4548693 to your computer and use it in GitHub Desktop.
Every so often I find myself running a server in development mode and needed to copy some compiled Stylus to work with. PITA because it's littered with (usually very helpful) Stylus debug notes. Here's a quick & dirty regex to find them in Sublime for deletion.
^(\/\* line\s(\d+)|@media -stylus-debug)(.+)$\n
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}}
@font-face {
font-family: "ProximaNovaWeb";
src: url("../assets/proximanova-regular-webfont-latin.eot");
src: url("../assets/proximanova-regular-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-regular-webfont-latin.woff") format("woff"), url("../assets/proximanova-regular-webfont-latin.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}}
@font-face {
font-family: "ProximaNovaWeb";
src: url("../assets/proximanova-regularitalic-webfont-latin.eot");
src: url("../assets/proximanova-regularitalic-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-regularitalic-webfont-latin.woff") format("woff"), url("../assets/proximanova-regularitalic-webfont-latin.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}}
@font-face {
font-family: "ProximaNovaWeb";
src: url("../assets/proximanova-bold-webfont-latin.eot");
src: url("../assets/proximanova-bold-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-bold-webfont-latin.woff") format("woff"), url("../assets/proximanova-bold-webfont-latin.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment