Re: [whatwg/url] Repeated slashes should be ignored in file scheme (#234)

domenic commented on this pull request.



> -
+    <ol>
+     <li>
+      <p>If <a>c</a> is neither "<code>/</code>" nor "<code>\</code>", run these substeps:
+      <ol>
+       <li>
+        <p>If <var>url</var>'s <a for=url>scheme</a> is "<code>file</code>", run these
+        subsubsteps:
+        <ol>
+         <li>
+          <p>If <a>remaining</a> does not start with "<code>//</code>",
+          <a>syntax violation</a>.</p>
+         </li>
+         <li>
+          <p>Set <var>state</var> to <a>file state</a>,
+          and decrease <var>pointer</var> by one.</p>

You can factor out the pointer decrease. Let me push a commit to show how.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/234#pullrequestreview-20836098

Received on Wednesday, 8 February 2017 18:49:02 UTC