Add punycode support

Fixes #8
This commit is contained in:
Filippo Valsorda
2018-06-28 01:44:13 -04:00
parent e4c5c312a7
commit 75a36a6de4
98 changed files with 137783 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.10
package bidirule
func (t *Transformer) isFinal() bool {
return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial
}