- From: Peter Saint-Andre <notifications@github.com>
- Date: Thu, 10 May 2018 09:00:03 -0700
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 10 May 2018 16:00:56 UTC
stpeter commented on this pull request. > + <li>Two <a>code points</a> that match an [[!ISO3166-1]] + alpha-2 country code. + </li> + <li>A single U+002D (-) <a>code point</a>. + </li> + <li>One, two, or three <a data-cite= + "INFRA#ascii-alphanumeric">ASCII alphanumeric</a> code + points, in any order. + </li> + </ul> + </div> + </li> + <li>Set <var>address</var>.<a>[[\regionCode]]</a> to + <var>regionCode</var>. + </li> + <li>Let <var>region</var> be the corresponding <a>country Although I'm always hesitant to parse other people's strings, ISO 3166-2 is defined to use ISO 3166-1 alpha-2 code elements as the first two characters of the string, followed by the hyphen character, followed by the region itself. So I _think_ we'd be safe in truncated the first three chars. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/payment-request/pull/690#discussion_r187375810
Received on Thursday, 10 May 2018 16:00:56 UTC