Permalink
Browse files

updating shell script to use better regex

  • Loading branch information...
1 parent e263961 commit 4793097b89dab0e41c055e3683cb7562f8e58fed Divya Manian committed Jan 22, 2012
Showing with 27 additions and 7 deletions.
  1. +25 −5 index.html
  2. +2 −2 new_feature.sh
View
@@ -119,7 +119,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>
- <a href="http://caniuse.com/box-reflection"><b class="namevalue">box-reflection</b></a>
+ <b class="namevalue">box-reflection</b>
</h2>
</header>
@@ -211,7 +211,7 @@ <h2 class='name'>
<article class="polyfill noie nooldmobile">
<header title="expand">
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
- <h4 class="kind js">js</h4>
+ <h4 class="kind api">api</h4>
<h2 class='name'>
<a href="http://caniuse.com/classlist"><b class="namevalue">classlist</b></a>
@@ -598,7 +598,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>
- <a href="http://caniuse.com/match-media"><b class="namevalue">match-media</b></a>
+ <b class="namevalue">match-media</b>
</h2>
</header>
@@ -731,7 +731,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>
- <a href="http://caniuse.com/ol-reversed"><b class="namevalue">ol-reversed</b></a>
+ <b class="namevalue">ol-reversed</b>
</h2>
</header>
@@ -884,7 +884,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>
- <a href="http://caniuse.com/scoped-css"><b class="namevalue">scoped-css</b></a>
+ <b class="namevalue">scoped-css</b>
</h2>
</header>
@@ -1113,6 +1113,26 @@ <h2 class='name'>
<footer class="tags">polyfill</footer>
</article>
+ <article class="none">
+ <header title="expand">
+ <h3 class="status avoid">avoid <i></i> </h3>
+ <h4 class="kind api">api</h4>
+ <h2 class='name'>
+
+ <a href="http://caniuse.com/websql"><b class="namevalue">web sql</b></a>
+
+ </h2>
+ </header>
+ <div class="more">
+ <div class='recco'><p>Although it found initial favor as a client-side database api, it has
+now been abandoned in favor of IndexDB. </p></div>
+ <div class='polyfills'></div>
+ <a class="updateurl" href=https://github.com/h5bp/html5please/blob/master/posts/websql.md>Edit info on
+ web sql</a>
+ </div>
+ <footer class="tags">none</footer>
+ </article>
+
<article class="gtie7 polyfill">
<header title="expand">
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
View
@@ -22,9 +22,9 @@ done
featureslug=$(
echo $feature |
# Use sed to replace spaces with hyphens
- sed -e "s/<//" -e "s/>//" |
+ sed -E -e "s/ +/-/" -e "s/[^A-Za-z0-9\-]//g" |
- # BSD sed doesn't accept \L, so use tr instead for case conversion
+ # BSD sed doesnt accept \L, so use tr instead for case conversion
tr "[A-Z]" "[a-z]"
)

0 comments on commit 4793097

Please sign in to comment.